<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>申请书规则对比结果</title>
<%@ include file="/common/meta.jsp"%>
</head>
<body>
	<div style="width:790px" id="contentDiv">
		<div>
			<div id='TopBarMnt' ></div>
			<table id='dataGrid'></table>
			<div id='dataBar'></div>
		</div>
		<div class="clear_h10"></div>
		<div style="text-align: center;">
      		&nbsp;<input type="button" class="button_01" value="关闭" onclick="parent.tb_remove();" id="back"/>
	  	</div>
	</div>

	<script type="text/javascript">
		var prcWin = new progressWin("${res}");//初始化遮罩层
		var irisGrid = new IrisGrid("dataGrid", "dataBar", 'TopBarMnt');
		
		function buildGrid() {
			var columnAttrList = new Array();
			columnAttr = new ColumnAttr("功能类别", "fund_name", "fund_name", 3,
					"center", true);//表头，字段名，，，宽度比例，居左，是否需要表头排序
			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("计划类别", "parent_grant_name", "parent_grant_name", 3,
					"center", true);//表头，字段名，，，宽度比例，居左，是否需要表头排序
			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("项目类别", "grant_name", "grant_name", 2,
					"center", true);
			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("项目名称", "zh_title", "zh_title", 4,
					"center", true);
			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("状态", "status_name", "status_name", 2,
					"center", true);
			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("主管部门", "admin_org_name", "admin_org_name", 2,
					"center", true);
			columnAttrList.push(columnAttr);
// 			columnAttr = new ColumnAttr("市级资助金额", "award_shi_amt", "award_shi_amt", 1,
// 					"center", true);
// 			columnAttrList.push(columnAttr);
			columnAttr = new ColumnAttr("立项金额", "award_amt", "award_amt", 1,
					"center", true);
			columnAttrList.push(columnAttr);
			irisGrid.setColumnAttrs(columnAttrList);
			irisGrid
					.setUrl("${ctx}/prpapprove/check-result-prp?flag=grid&prpCodes=${param.prpCodes}");//查询url
			irisGrid.setCaption("暂写");
			irisGrid.setDefaultSortName(" status_name desc,fund_name ");//默认排序字段
			irisGrid.setDefaultSortorder("");
			irisGrid.setWidth(787);//整个表格宽度
			irisGrid.setCheckAble(false);//表格左边是否要复选框
			//irisGrid.setRowNum(999);//控制一页显示多少行
			irisGrid.setShowRowIndex(false);//是否显示行号
			//irisGrid.setQueryBox('searchBt', 'prpApprove_search');//查询条件 按钮名，查询条件function_key
			irisGrid.setLoadComplete(adjustCss);
			irisGrid.build();
		}
		jQuery(function() {

			buildGrid();
		});
		/** 表格初始化**/
		
		function adjustCss(){
			//ui-jqgrid-view
			//dataBar
			$(".ui-jqgrid-htable thead tr").css("height","30px");
			//$("#TopBarMnt").css("display","none");
			//$("#dataBar").css("display","none");
		}
		
		
		
	</script>
</body>
</html>